]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
extensionSystem: Log errors of async D-Bus call
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 1 Sep 2026 19:44:24 +0000 (21:44 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Sun, 13 Sep 2026 17:39:10 +0000 (19:39 +0200)
The OpenExtensionPrefs D-Bus method may return an error — for example
when there already is an open dialog — so log the error to avoid
"unhandled promise rejection" warnings in the log.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4375>
(cherry picked from commit 2c536f5b3b0957e34da54fb401a70efd01f9f235)

js/ui/extensionSystem.js

index 9a34a9cbf3a7fd0a78be255152c93453ccfa1c71..1d856d5c9928beed2a0b5f7167fbc23d9d0c235b 100644 (file)
@@ -324,7 +324,7 @@ export class ExtensionManager extends Signals.EventEmitter {
             null,
             Gio.DBusCallFlags.NONE,
             -1,
-            null);
+            null).catch(logError);
         return true;
     }